package xiaolong.zhou.spring_demo.Pojo;
import com.fasterxml.jackson.annotation.JacksonInject;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Register {
    @NotEmpty(message = "用户昵称不存在")
    private String username;
    @NotEmpty(message = "邮箱地址不存在")
    private String email;
    @NotEmpty(message = "电话号码不存在")
    private String phone;
    @NotEmpty(message = "请填写密码")
    private String password;
    @NotEmpty(message = "请填写重复密码")
    private String repassword;
    @NotEmpty(message = "验证码表示不存在")
    private String sessionId;
    @NotEmpty(message = "图形验证码不存在")
    private String captcha;
    @NotEmpty(message = "邮件验证码不存在")
    private String emailCaptcha;
    @NotEmpty(message = "请上传头像")
    private String avatar;
}
